package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @className: GroupActivity
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘茂锴
 * @date: 2025/10/2 10:01
 */
@Data
public class GroupActivity {
    //主键ID
    private Integer id;
    //商品ID
    private Integer productId;
    //活动标题
    private String title;
    //拼团价格
    private BigDecimal groupPrice;
    //成团人数
    private Integer groupSize;
    //活动库存
    private Integer stock;
    //每人限购数量(-1表示不限购)
    private Integer limitPerUser;
    //开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    //状态(0:未开始,1:进行中,2:已结束)
    private Integer status;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
